package nju.bean.meeting.meetingRecordManagement;

import java.util.ArrayList;
import java.util.List;
import nju.bean.meeting.UML.Executable;
import nju.bean.meeting.data.RecordSummary;
import nju.bean.meeting.database.DatabaseManager;
import nju.bean.meeting.encode.C;
import nju.bean.meeting.encode.FileIO;

public class MeetingRecordManager implements MeetingRecordManagerInterface{

	@SuppressWarnings("unchecked")
	@Override
	public List<Executable> getWhiteBoardRecord(String meetingId) {
		// TODO Auto-generated method stub
		String path=C.getIniKey("recordDirectory")+meetingId;
		return (ArrayList<Executable>)FileIO.readObjectFrom(path);
		//(List<Executable>)FileIO.readObjectFrom(path);
	}

	@Override
	public List<RecordSummary> getRecordSummary(String userName) {
		// TODO Auto-generated method stub
		return DatabaseManager.getInstance().getRecordSummary(userName);
	}
	
}
